

package com.hazelcast.internal.networking;

/**
 * A listener called when a {@link Channel} is closed.
 * <p>
 * One of the potential usages is to release resources attached to a channel e.g.
 * deregistration of metrics.
 */
public interface ChannelCloseListener {

    /**
     * Called when the channel is closed.
     *
     * @param channel the channel closed.
     */
    void onClose(Channel channel);
}
